#include "atk_mo1218_uart.h"
#include "iot_uart.h"
#include "hi_uart.h"

uint8_t buf[ATK_MO1218_UART_RX_BUF_SIZE];   

void atk_mo1218_uart_send(uint8_t *dat, uint8_t len)
{
    IoTUartWrite(HI_UART_IDX_1, (unsigned char*)dat, len);
}

int atk_mo1218_uart_rx_restart(void)
{
    return IoTUartRead(HI_UART_IDX_1, buf, sizeof(buf));
}